#!/bin/bash
#

if [ -z $1 ]; then
    echo "帮助：$0 <insert|delete|update|select>"
    exit 12
fi

user=root
password=WWW.1.com
number=$(mysqladmin -u${user} -p${password} extended-status 2> /dev/null| grep -w "Com_$1" | awk '{print $4}')
    echo $number
